package com.jing.weibo.mapper.system;

import java.util.List;

import com.jing.weibo.pojo.system.Rule;

/**
 * 规则的Mapper
 * @author jing.yue
 * @version 2012/09/27 1.0.0
 */
public interface RuleMapper {

	/**
	 * 获取所有规则信息集合
	 * @return
	 * @throws Exception
	 */
	public abstract List<Rule> findAllRule() throws Exception;

	/**
	 * 根据code获取规则对象
	 * @param code
	 * @return
	 * @throws Exception
	 */
	public abstract Rule findByCodeRule(String code) throws Exception;
}